<template>
    <view class="home-login-com" v-if="!$store.token">
        <view class="content">
            <view class="cl">
                <image class="mlogo" src="/static/logo.png"></image>
                <view class="clt">登录开启品质生活</view>
            </view>
            <view class="cr" @click.stop="$go(`/pages/login/login`)">立即登录</view>
        </view>
    </view>
</template>

<script setup>
    
</script>

<style lang="scss" scoped>
.home-login-com{
    width: 100%;
    padding: 0 20rpx;
    position: fixed;
    bottom: 10rpx;
    // #ifdef H5
    bottom: 100rpx;
    // #endif
    z-index: 11;

    .content{
        width: 100%;
        padding: 6rpx 10rpx;
        background-color: rgba(0, 0, 0, 0.5);
        height: 70rpx;
        border-radius: 70rpx;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .cr{
            width: 160rpx;
            height: 58rpx;
            background-color: $main_color;
            border-radius: 58rpx;
            color: #fff;
            font-size: 20rpx;
            line-height: 58rpx;
            text-align: center;
        }

        .cl{
            flex: 1;
            display: flex;
            align-items: center;
            padding-left: 0rpx;
            .mlogo{
                height: 58rpx;
                width: 58rpx;
                border-radius: 58rpx;
            }
            .clt{
                font-size: 24rpx;
                color: #fff;
                margin-left: 20rpx;
            }
        }
    }

}
</style>